package net.borlis.processor.dao.entity;

import net.borlis.processor.dao.entity.common.AuditedEntity;
import net.borlis.processor.dao.entity.common.BaseEntity;
import net.borlis.processor.enumerated.ChangeType;
import net.borlis.processor.enumerated.ParameterType;

import javax.persistence.*;
import java.math.BigInteger;

/**
 * Created by borlis on 24.12.2014.
 */
@Entity
@Table(name = "parameter")
public class ParameterEntity extends BaseEntity implements AuditedEntity {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    private BigInteger id;

    @Column(name = "name")
    private String name;

    @Basic
    @Column(name = "type", nullable = false)
    @Enumerated(EnumType.STRING)
    private ParameterType type;

    public ParameterEntity() {
        super();
    }

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ParameterType getType() {
        return type;
    }

    public void setType(ParameterType type) {
        this.type = type;
    }
}
